import request from '@/config/axios'

export interface MemberMomentVO {
}

// 查询相亲会员动态统计
export const getMomentStatistics = async (id: number) => {
  return await request.get({ url: `/blind/member-moment/getMomentStatistics?id=` + id })
}
// 查询相亲会员动态列表
export const getMemberMomentPage = async (params) => {
  return await request.get({ url: `/blind/member-moment/page`, params })
}

// 查询相亲会员动态详情
export const getMemberMoment = async (id: number) => {
  return await request.get({ url: `/blind/member-moment/get?id=` + id })
}

// 新增相亲会员动态
export const createMemberMoment = async (data: MemberMomentVO) => {
  return await request.post({ url: `/blind/member-moment/create`, data })
}

// 修改相亲会员动态
export const updateMemberMoment = async (data: MemberMomentVO) => {
  return await request.put({ url: `/blind/member-moment/update`, data })
}

// 删除相亲会员动态
export const deleteMemberMoment = async (id: number) => {
  return await request.delete({ url: `/blind/member-moment/delete?id=` + id })
}

// 导出相亲会员动态 Excel
export const exportMemberMoment = async (params) => {
  return await request.download({ url: `/blind/member-moment/export-excel`, params })
}
